<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta name="x5-fullscreen" content="true">
<meta name="browsermode" content="application">
<meta name="x5-page-mode" content="app">
<meta name="msapplication-tap-highlight" content="no">
<title></title>
<link rel="stylesheet" type="text/css" href="/layui/css/layui.css"  media="all">
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link rel="stylesheet" href="/groupbuying/css/frameui.css"/>
<link rel="stylesheet" href="/groupbuying/css/widget/slider.css"/>
<link rel="stylesheet" href="/groupbuying/css/index.css"/>
<script type="text/javascript" src="/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/layui-post.js"></script>
</head>
<body style="background-color: #f2f2f2;">
<!--html5 nav-->
<nav class="navbar index-nav">
    <div class="loca ng-scope title-order" style="background: #f9fafd;">
        <a class="title-top" href="javascript:window.history.back();"></a>
        <a class="title-center">热门拼团</a>
        <a class="title-right" href="/index"></a>
    </div>
</nav>
<div class="j-hint">拼团成功，1小时内极速达</div>
<!--导航-->
<!--	<div class="j-component-func" id="m-banner">-->
<!--        <ul class="list-unstyled" id="categoryMenu">-->
<!--            <li class="route1 "><a href="register.html"><span class="glyphicon fdayicon fdayicon-all"></span>新用户</a></li>-->
<!--            <li class="route2 "><a href="meal.html"><span class="glyphicon fdayicon fdayicon-order"></span>套餐</a></li>-->
<!--            <li class="route3 "><a href="invite.html"><span class="glyphicon fdayicon fdayicon-contact"></span>邀请红包</a></li>-->
<!--            <li class="route4 "><a href="#"><span class="glyphicon fdayicon fdayicon-client"></span>企业团购</a></li>-->
<!--        </ul>-->
<!--    </div>-->
<!--内容-->
<div id="tuan" class="tuan"></div>
<script type="text/javascript">
$.ajaxSetup({contentType: "application/json; charset=utf-8"});
var userInfo = $.parseJSON(sessionStorage.getItem("userInfo")),enumsData=[];
layui.use(['layer','form','element','util'], function(){
    layui.util.fixbar({
        top:true,css: { right: 15, bottom: 105 },showHeight:100,
        click: function (type) {if (type === 'top') $('.layui-fluid').animate({scrollTop: 0}, 200);}
    });
    var loading = layer.load(0, {shade: 0.1});
    $.post("/cateringGroupActivities/select",JSON.stringify({status:0,orderByAscType:"createTime"}), function (res) {
        layer.closeAll()
        $("#tuan").empty()
        for(var i in res.data){
            $("#tuan").append(
                '<div class="tuan_g" data-vtuan="0" data-cat="1" data-num="12058">' +
                '<i></i>' +
                '<a href="/groupdetail?actiId='+res.data[i].sysId+'">' +
                '<div class="tuan_g_img">' +
                '<div class="tally_box">' +
                '<p>'+res.data[i].groupSize+'人团</p>' +
                '<p>'+cutZero(parseFloat((res.data[i].actiPrice/1)/(res.data[i].goodsPrice/1)*10).toFixed(2))+'折</p>' +
                '</div>' +
                '<img src="'+res.data[i].goodsImg+'">' +
                '</div>' +
                '<div class="tuan_g_info">' +
                '<p class="tuan_g_name">'+res.data[i].actiName+'【<span style="color: red;">直降'+parseFloat(res.data[i].goodsPrice/1-res.data[i].actiPrice).toFixed(2)+'元</span>】</p>' +
                '<p style="display: block;" class="tuan_g_cx">'+res.data[i].actiDesc+'</p>' +
                '</div>' +
                '<div class="tuan_g_core" style="width: revert;">' +
                '<div class="triangle-right"></div>' +
                '<div class="tuan_g_price">' +
                '<span>'+res.data[i].groupSize+'人团只需&nbsp;</span>' +
                '<b>¥'+res.data[i].actiPrice+'</b>' +
                '</div>' +
                '<div class="tuan_g_btn">我要拼</div>' +
                '</div>' +
                '<div class="tuan_g_yj"><s>原价:￥'+res.data[i].goodsPrice+'</s></div>' +
                '</a>' +
                '</div>'
            )
        }
    })
})
window.onload=function(){
    $("#categoryMenu li").addClass("route")
}
</script>
<script type="text/javascript" src="/groupbuying/js/bottom-menu.js"></script>
</body>
</html>